#!/bin/bash

function pdc_test {
  classpath=bin:tspaces/lib/tspaces_client.jar
  pkg=$1
  n_clients=$2
  output_file="output_${pkg}"
  params=$3

  rm $output_file

  for ((i=0; i<$n_clients; i++))
  do
    java -cp $classpath ${pkg}.Test $i ${params} >>$output_file &
  done
}

